#ifndef MYCOINBTN_H
#define MYCOINBTN_H

#include <QPushButton>
#include <QTimer>

class MyCoinBtn : public QPushButton
{
    Q_OBJECT
public:
    explicit MyCoinBtn(QWidget *parent = nullptr);

    MyCoinBtn(QString btnImg);

    //金币的属性
    int posX;
    int posY;
    bool bFlag = false;

    //改变标志的方法
    void changeFlag();
    QTimer timerRotate;
    QTimer timerReversal;
    int min = 1;
    int max = 8;

     bool isWin = false;

    //是否动画
    bool isAnimation = false;

    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

signals:

public slots:
};

#endif // MYCOINBTN_H
